package com.power.dao;

import com.power.ov.ResultData;
import com.power.ov.ResultDataTable;
import com.power.pojo.Tower;

import java.sql.SQLException;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: 李辽
 * Date: 2020/10/03 17:12
 * Description:
 * Version: V1.0
 */
public interface TowerDao {
    ResultDataTable queryListPower(int page, int limit) throws SQLException;

    int DeleteTowerByName(int towper_id) throws SQLException;

    int ChangeTower(Tower tower1) throws SQLException;

    List<Tower> findTowerById(int towper_id);

    int Addtopwer(Tower tower1) throws SQLException;

    ResultDataTable SearchTowerByLineId(Tower tower) throws SQLException;

    ResultDataTable SearchTower(int page, int limit, int line_id, int tower_state) throws SQLException;

    int ModifiesTowerStatus(int towper_id, int newState) throws SQLException;

    int queryLineIdByIneNumber(String line_number) throws SQLException;

    ResultData DefectSelect(String line_id) throws SQLException;
}
